import request from '@/utils/request'
//库二级类型管理接口
export function sysCourseSubTypeQuery(data) { //分页列表
    return request({
        method: 'get',
        url: '/sysCourseSubType/query',
        params: data
    })
}

export function sysCourseSubTypeQueryById(id) { //查询
    return request({
        method: 'get',
        url: '/sysCourseSubType/query/' + id,
    })
}

export function sysCourseSubTypeAdd(data) { //添加
    return request({
        method: 'post',
        url: '/sysCourseSubType/add',
        data
    })
}

export function sysCourseSubTypeDelete(id) { //删除
    return request({
        method: 'get',
        url: '/sysCourseSubType/delete/' + id,
    })
}

export function sysCourseSubTypeUpdate(data) { //修改
    return request({
        method: 'post',
        url: '/sysCourseSubType/update',
        data
    })
}